package com.woniuxy.common.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CenterComplainhandlingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CenterComplainhandlingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCenterComplainidIsNull() {
            addCriterion("center_complainid is null");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidIsNotNull() {
            addCriterion("center_complainid is not null");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidEqualTo(String value) {
            addCriterion("center_complainid =", value, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidNotEqualTo(String value) {
            addCriterion("center_complainid <>", value, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidGreaterThan(String value) {
            addCriterion("center_complainid >", value, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidGreaterThanOrEqualTo(String value) {
            addCriterion("center_complainid >=", value, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidLessThan(String value) {
            addCriterion("center_complainid <", value, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidLessThanOrEqualTo(String value) {
            addCriterion("center_complainid <=", value, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidLike(String value) {
            addCriterion("center_complainid like", value, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidNotLike(String value) {
            addCriterion("center_complainid not like", value, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidIn(List<String> values) {
            addCriterion("center_complainid in", values, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidNotIn(List<String> values) {
            addCriterion("center_complainid not in", values, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidBetween(String value1, String value2) {
            addCriterion("center_complainid between", value1, value2, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainidNotBetween(String value1, String value2) {
            addCriterion("center_complainid not between", value1, value2, "centerComplainid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridIsNull() {
            addCriterion("center_complain_userid is null");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridIsNotNull() {
            addCriterion("center_complain_userid is not null");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridEqualTo(String value) {
            addCriterion("center_complain_userid =", value, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridNotEqualTo(String value) {
            addCriterion("center_complain_userid <>", value, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridGreaterThan(String value) {
            addCriterion("center_complain_userid >", value, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridGreaterThanOrEqualTo(String value) {
            addCriterion("center_complain_userid >=", value, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridLessThan(String value) {
            addCriterion("center_complain_userid <", value, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridLessThanOrEqualTo(String value) {
            addCriterion("center_complain_userid <=", value, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridLike(String value) {
            addCriterion("center_complain_userid like", value, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridNotLike(String value) {
            addCriterion("center_complain_userid not like", value, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridIn(List<String> values) {
            addCriterion("center_complain_userid in", values, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridNotIn(List<String> values) {
            addCriterion("center_complain_userid not in", values, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridBetween(String value1, String value2) {
            addCriterion("center_complain_userid between", value1, value2, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterComplainUseridNotBetween(String value1, String value2) {
            addCriterion("center_complain_userid not between", value1, value2, "centerComplainUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridIsNull() {
            addCriterion("center_handler_userid is null");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridIsNotNull() {
            addCriterion("center_handler_userid is not null");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridEqualTo(String value) {
            addCriterion("center_handler_userid =", value, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridNotEqualTo(String value) {
            addCriterion("center_handler_userid <>", value, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridGreaterThan(String value) {
            addCriterion("center_handler_userid >", value, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridGreaterThanOrEqualTo(String value) {
            addCriterion("center_handler_userid >=", value, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridLessThan(String value) {
            addCriterion("center_handler_userid <", value, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridLessThanOrEqualTo(String value) {
            addCriterion("center_handler_userid <=", value, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridLike(String value) {
            addCriterion("center_handler_userid like", value, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridNotLike(String value) {
            addCriterion("center_handler_userid not like", value, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridIn(List<String> values) {
            addCriterion("center_handler_userid in", values, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridNotIn(List<String> values) {
            addCriterion("center_handler_userid not in", values, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridBetween(String value1, String value2) {
            addCriterion("center_handler_userid between", value1, value2, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterHandlerUseridNotBetween(String value1, String value2) {
            addCriterion("center_handler_userid not between", value1, value2, "centerHandlerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterStatusIsNull() {
            addCriterion("center_status is null");
            return (Criteria) this;
        }

        public Criteria andCenterStatusIsNotNull() {
            addCriterion("center_status is not null");
            return (Criteria) this;
        }

        public Criteria andCenterStatusEqualTo(Byte value) {
            addCriterion("center_status =", value, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusNotEqualTo(Byte value) {
            addCriterion("center_status <>", value, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusGreaterThan(Byte value) {
            addCriterion("center_status >", value, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("center_status >=", value, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusLessThan(Byte value) {
            addCriterion("center_status <", value, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusLessThanOrEqualTo(Byte value) {
            addCriterion("center_status <=", value, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusIn(List<Byte> values) {
            addCriterion("center_status in", values, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusNotIn(List<Byte> values) {
            addCriterion("center_status not in", values, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusBetween(Byte value1, Byte value2) {
            addCriterion("center_status between", value1, value2, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("center_status not between", value1, value2, "centerStatus");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeIsNull() {
            addCriterion("center_handletime is null");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeIsNotNull() {
            addCriterion("center_handletime is not null");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeEqualTo(Date value) {
            addCriterion("center_handletime =", value, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeNotEqualTo(Date value) {
            addCriterion("center_handletime <>", value, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeGreaterThan(Date value) {
            addCriterion("center_handletime >", value, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeGreaterThanOrEqualTo(Date value) {
            addCriterion("center_handletime >=", value, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeLessThan(Date value) {
            addCriterion("center_handletime <", value, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeLessThanOrEqualTo(Date value) {
            addCriterion("center_handletime <=", value, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeIn(List<Date> values) {
            addCriterion("center_handletime in", values, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeNotIn(List<Date> values) {
            addCriterion("center_handletime not in", values, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeBetween(Date value1, Date value2) {
            addCriterion("center_handletime between", value1, value2, "centerHandletime");
            return (Criteria) this;
        }

        public Criteria andCenterHandletimeNotBetween(Date value1, Date value2) {
            addCriterion("center_handletime not between", value1, value2, "centerHandletime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}